home *** CD-ROM | disk | FTP | other *** search
/ Group 42-Sells Out! - The Information Archive / Group 42 Sells Out (Group 42) (1996).iso / credit / atms.txt < prev    next >
Text File  |  1995-11-30  |  20KB  |  415 lines

  1. ***************  Track Layouts ************************
  2.  
  3. This is off the top of my head, but is 99% there.  Also I'll ignore
  4. some obsolete stuff.
  5.  
  6. The physical layout of the cards are standard.  The LOGICAL makeup
  7. varies from institution to institution.  There are some generally
  8. followed layouts, but not mandatory.
  9.  
  10. There are actually up to three tracks on a card.
  11.  
  12. Track 1 was designed for airline use.  It contains your name and
  13. usually your account number.  This is the track that is used when
  14. the ATM greets you by name.  There are some glitches in how things
  15. are ordered so occasionally you do get "Greetings Bill Smith Dr."
  16. but such is life.  This track is also used with the new airline
  17. auto check in (PSA, American, etc)
  18.  
  19. Track 3 is the "OFF-LINE" ATM track.  It contains such nifty
  20. information as your daily limit, limit left, last access, account
  21. number, and expiration date.  (And usually anything I describe in track
  22. 2).  The ATM itself could have the ability to rewrite this track to
  23. update information.
  24.  
  25. Track 2 is the main operational track for online use.  The first thing
  26. on track to is the PRIMARY ACCOUNT NUMBER (PAN).  This is pretty
  27. standard for all cards, though no guarantee.  Some additional info
  28. might be on the card such as expiration date.  One interesting item
  29. is the PIN offset.   When an ATM verifies a PIN locally, it usually
  30. uses an encryption scheme involving the PAN and a secret KEY.
  31. This gives you a "NATURAL PIN" (i.e. when they mail you your pin, this
  32. is how it got generated.)  If you want to select your own PIN, they
  33. would put the PIN OFFSET in the clear on the card.  Just do modulo 10
  34. arithmetic on the Natural PIN plus the offset, and you have the
  35. selected PIN.  YOUR PIN IS NEVER IN THE CLEAR ON YOUR CARD.  Knowing
  36. the PIN OFFSET will not give you the PIN.  This will required the
  37. SECRET KEY.
  38.  
  39. Hope that answers your question
  40.  
  41. ************ Deposits at ATMs ************************
  42.  
  43. Deposits on ATM:
  44.  
  45. Various banks have various systems.  As an example, at CITIbank
  46. a deposit was made to a specific account.  Your account was updated
  47. with a MEMO update, i.e. it would show up on your balance.  However
  48. it did not become AVAILABLE funds until it was verified by a teller.
  49. On the envelope was Customer ID number, the envelope number and
  50. the Entered dollar amount, the branch # and the Machine #.
  51.  
  52. There was also a selection for OTHER PAYMENTS.  This allowed you to
  53. dump any deposit into the ATM.
  54.  
  55. What are you assured then when you deposit to an ATM ?
  56.  
  57. 1) You have a banking RECORD (not a reciept at Citibank).  If you
  58.    have this record, there is a VERY high percentage that you
  59.    deposited something at that ATM.
  60.  
  61. 2) Some banks have ways of crediting your deposit RIGHT NOW.
  62.    This could be done by a balance in another account (i.e. a long
  63.    term C.D. or a line of credit.)  That way they can get you if
  64.    you lied.
  65.  
  66.  
  67. **************  ATM Splitting a Card in half ***************
  68.  
  69.    I've worked with about 75% of the types of machines on the market
  70. and NONE of them split a card in half upon swallow.  However, some
  71. NETWORKS have a policy of  slicing a card to avoid security
  72. problems.
  73.  
  74. Trusting an ATM.
  75. Intresting you should bring this up, I'm just brusing up a paper
  76. describing a REAL situation where your card and PIN are in the clear.
  77. This involves a customer using a bank that is part of a network.
  78. All the information was available to folks in DP, if they put in some
  79. efforts to get it.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.           Mis-Implementation of an ATM PIN security system
  87.  
  88.  
  89. 1.  Synopsis
  90. In an EFT (Electronic Funds Transfer) network, a single node which  does
  91. not  implement  the  proper  security  can  have  effects throughout the
  92. network.  In this paper, the author describes an example of how security
  93. features  were  ignored, never-implemented, and/or incorrectly designed.
  94. The human factors involved in the final implementation are  explored  by
  95. showing  several major vulnerabilites caused by a Savings and Loan and a
  96. regional EFT network's lack of vigilance in installing  an  EFT  network
  97. node.   While  using  an  EFT  system as an example, the concepts can be
  98. extrapolated into the implementation of other secured systems.
  99.  
  100.  
  101. 2.  Background
  102. A small Savings and Loan  was  setting  up  a  small  (10  to  16  ATMs)
  103. proprietary  Automatic  Teller  Machine (ATM) network.  This network was
  104. then intended to link up to a regional network.  The manufacturer of the
  105. institution's  online  banking  processor  sent an on-site programmer to
  106. develop the required interfaces.
  107.  
  108. An ATM network consists of three main  parts.   The  first  is  the  ATM
  109. itself.   An ATM can have a range of intelligence.  In this case the ATM
  110. was able to decode a  PIN  (Personal  Identification  Number)  using  an
  111. institution  supplied  DES  (Data Encryption Standard) key.  It was then
  112. required to send a request for funds to the host where it would receive
  113. authorization.
  114.  
  115. The second portion of the network is the ATM controller.  The controller
  116. monitors the transaction, and routes the message  to  the  authorization
  117. processor.   The  controller  would  also generally monitor the physical
  118. devices and statuses of the ATM.
  119.  
  120. The third portion of the network is the authorization system.   In  this
  121. case  customers  of  the  local  institution  would have the transaction
  122. authorized on the same processor.  Customers  from  foreign  (i.e.   one
  123. that  does not belong to the institution that runs the ATM) institutions
  124. would be authorized by the regional  network.   Authorization  could  be
  125. from  a  run-up  file which maintains establishes a limit on withdrawals
  126. for a  given  account  during  a  given  period.   A  better  method  is
  127. authorization direct from the institution which issued the card.
  128.  
  129.  
  130. 3.  Security
  131. The system has a two component key system to allow access to the network
  132. by the customer.  The first  is  the  physical  ATM  card  which  has  a
  133. magnetic stripe.  The magnetic stripe contains account information.  The
  134. second component is the Personal Identification Number (PIN).   The  PIN
  135. is hand entered by the customer into the ATM at transaction time.  Given
  136. these  two  parts,  the  network  will  assume  that  the  user  is  the
  137. appropriate customer and allow the transaction to proceed.
  138.  
  139. The Magnetic stripe is in the clear and may be assume to be reproducible
  140. using various methods, thus the PIN is crucial security.
  141.  
  142.  
  143.  Security PIN security
  144.  
  145. 3.1.  PIN security
  146.  
  147. 3.1.1.  PIN key validation method
  148.  
  149. PINs can be linked up to a particular card in a  number  of  ways.   One
  150. method  puts  the  PIN  into  a central data base in a one-way encrypted
  151. format.  When a PIN is presented, it  would  be  encrypted  against  the
  152. format  in  the  data base.  This method requires a method of encrypting
  153. the PIN given at the ATM, until it can be verified at the central  site.
  154. Problems  can  also  occur if the institution wants to move the PIN data
  155. base to another processor, especially from a different computer vendor.
  156.  
  157. Another  method  is  to take information on the card, combine it with an
  158. institution PIN encryption key (PIN key) and use that  to  generate  the
  159. PIN.   The institution in question used the PIN key method.  This allows
  160. the customer to be verified at the ATM itself and no transmission of the
  161. PIN  is  required.   The  risk  of  the  system  is  the PIN key must be
  162. maintained under the tightest of security.
  163.  
  164. The PIN key is used to generate the natural PIN.   This  is  derived  by
  165. taking  the  account number and using DES upon it with the PIN key.  The
  166. resulting number then is decimialized by doing a lookup on  a  16  digit
  167. decimalization  table  to  convert  the  resulting hexadecimal digits to
  168. decimal digits.  An ATM loaded with the appropriate  PIN  key  can  then
  169. validate  a customer locally with no need to send PIN information to the
  170. network, thereby reducing the risk of compromise.
  171.  
  172. The PIN key requires the utmost security.  Once the PIN  key  is  known,
  173. any  customer's  ATM card, with corresponding PIN can be created given a
  174. customer account number.  The ATM allows for the PIN to  be  entered  at
  175. the  ATM  in  two parts, thus allowing each of two bank officers to know
  176. only one half of the key.  If desired, a terminal  master  key  can  be
  177. loaded and then the encrypted PIN key loaded from the network.
  178.  
  179. The  decimalization table usually consists of 0 to 9 and 0 to 5, ("0" to
  180. "F" in hexadecimal where "F" = 15).  The decimalization table can be put
  181. into any order, scrambling the digits and slowing down an attacker.  (As
  182. a side note, it could be noted that using the "standard" table, the  PIN
  183. digits  are  weighted  to 0 through 5, each having a 1/8 chance of being
  184. the digit, while 6 through 9 has only a 1/16 chance.)
  185.  
  186. When handling a foreign card, (i.e.  one that does  not  belong  to  the
  187. institution that runs the ATM), the PIN must be passed on to the network
  188. in encrypted form.  First, however, it must be passed from  the  ATM  to
  189. the  ATM controller.  This is accomplished by encrypting the PIN entered
  190. at  the  ATM  using  a  communication  key  (communication   key),   The
  191. communication  key  is  entered  at  the  ATM much like the PIN key.  In
  192. addition, it can be downloaded from the network.  The PIN  is  decrypted
  193. at  the controller and then reencrypted with the network's communication
  194. key.
  195.  
  196.                                  - 2 -
  197.  
  198. Security
  199. PIN security
  200. PIN key validation method
  201.  
  202.  
  203. Maintaining  the  the  security  of  the  foreign  PIN  is  of  critical
  204. importance.   Given  the  foreign PIN along with the ATM card's magnetic
  205. image, the perpetrator has access to an account  from  any  ATM  on  the
  206. network.    This  would  make  tracking  of  potential  attackers  quite
  207. difficult, since the ATM and the institution they extract funds from can
  208. be  completely  different from the institution where the information was
  209. gleaned.
  210.  
  211. Given  that  the  encrypted  PIN  goes  through   normal   communication
  212. processes,  it  could  be  logged  on  the normal I/O logs.  Since it is
  213. subject to such logging, the PIN in any form should be denied  from  the
  214. logging function.
  215.  
  216.  
  217. 3.2.  Security Violations
  218. While  the EFT network has potential to run in a secured mode given some
  219. of the precautions outlined above, the potential for abuse  of  security
  220. is  quite easy.  In the case of this system, security was compromised in
  221. a number of ways, each leading to the potential loss of funds, and to  a
  222. loss of confidence in the EFT system itself.
  223.  
  224.  
  225. 3.2.1.  Violations of the PIN key method
  226. The  two  custodian  system simply wasn't practical when ATMs were being
  227. installed all over the state.  Two examples show this:   When  asked  by
  228. the  developer  for the PIN key to be entered into a test ATM, there was
  229. first a massive search for the key, and then it was read to him over the
  230. phone.   The  PIN  key  was  written  on  a scrap of paper which was not
  231. secured.  This is the PIN key that all the customer PINs are  based  on,
  232. and which compromise should require the reissue of all PINs.)
  233.  
  234. The  importance of a system to enter the PIN key by appropriate officers
  235. of the bank should not be overlooked.  In  practice  the  ATM  installer
  236. might  be the one asked to enter the keys into the machine.  This indeed
  237. was demonstrated in this case where the ATM installer not only had  the
  238. keys  for  the  Savings and Loan, but also for other institutions in the
  239. area.  This was kept in the high security area of the  notebook  in  the
  240. installer's front pocket.
  241.  
  242. Having  a  Master key entered into the ATM by officers of the bank might
  243. add an additional layer of security to the system.  The actual  PIN  key
  244. would then be loaded in encrypted form from the network.  In the example
  245. above, if the installer was aware of the terminal master key,  he  would
  246. have to monitor the line to derive the actual PIN key.
  247.  
  248. The  use  of  a downline encrypted key was never implemented, due to the
  249. potential complications and added cost of such a  system.   Even  if  it
  250. was,  once violated, security can only be regained by a complete reissue
  251. of customer PINs with the resulting confusion ensuing.
  252.  
  253.  
  254.  
  255.                                  - 3 -
  256.  
  257. Security
  258. Security Violations
  259. Network validated PIN Security violations
  260.  
  261.  
  262. 3.2.2.  Network validated PIN Security violations
  263. Given  the  potential  for untraced transactions, the maintenance of the
  264. foreign PINs security was extremely important.  In the PIN  key  example
  265. above,  any  violation  would  directly  affect  the  institution of the
  266. violators.  This would limit the scope of an investigation, and  enhance
  267. the  chance of detection and apprehension.  The violation of foreign PIN
  268. information has a much wider sphere of attack,  with  the  corresponding
  269. lower chance of apprehension.
  270.  
  271. The  communication  key  itself  was  never  secured.  In this case, the
  272. developer  handed  the  key  to  the  bank  officers,  to   ensure   the
  273. communication  key  didn't get misplaced as the PIN key did (This way he
  274. could recall it in case it got lost).  Given the communication key,  the
  275. security  violation  potential  is  simple enough.  The programmer could
  276. simply  tap  the  line  between  the  ATM  and  the  controller.    This
  277. information  could  then generate a set of PIN and card image pairs.  He
  278. would even have account balances.
  279.  
  280. Tapping the line would have been an effort, and worse yet he  could  get
  281. caught.   However,  having  the  I/O  logs could serve the same purpose.
  282. While originally designed to obscure PIN information in  the  I/O  logs,
  283. the  feature was disabled due to problems caused by the regional network
  284. during testing.  The I/O logs would be sent to the developer  any  time
  285. there was a problem with the ATM controller or the network interface.
  286.  
  287. The  generation of PIN and card image pairs has a potential for even the
  288. most secured system on the network  to  be  attacked  by  the  lapse  in
  289. security  of  a weaker node.  Neither the communication key, nor the PIN
  290. should ever be available in the clear.  This requires  special  hardware
  291. at  the  controller  to  store  this  information.   In  this  case, the
  292. institution had no desire to install a  secured  box  for  storing  key
  293. information.   The  communication key was available in software, and the
  294. PIN was in the clear during the process of decrypting from the  ATM  and
  295. re-encrypting  with  the network key.  Any programmer on the system with
  296. access to the controller could put in a log file to tap off the PINs  at
  297. that point.
  298.  
  299. The largest failure of the system, though, was not a result of the items
  300. described above.  The largest failure in the system was in the method of
  301. encrypting  the  PIN  before  going  to the network.  This is due to the
  302. failure of the network to have a secured key between sites.  The PIN was
  303. to  be  encrypted  with  a  network  key.   The  network key was sent in
  304. encrypted form from the network to the ATM controller.  However, the key
  305. to  decrypt  the network key was sent almost in the clear as part of the
  306. start-of-day sequence.
  307.  
  308. Any infiltrator monitoring the  line  would  be  able  to  get  all  key
  309. information  by  monitoring the start-of-day sequence, doing the trivial
  310. decryption of the communication key, and proceeding to gather card image
  311. and PIN pairs.  The infiltrator could then generate cards and attack the
  312. system at his leisure.
  313.  
  314.                                  - 4 -
  315.  
  316. Security
  317. Security Violations
  318. Network validated PIN Security violations
  319.  
  320.  
  321. The network-ATM controller security failure is the most critical feature
  322. since it was defined by a regional network supporting many institutions.
  323. The network was supposedly  in  a  better  position  to  understand  the
  324. security requirements.
  325.  
  326.  
  327. 4.  The Human Factors in Security  Violation
  328. It is important the users of a system be appraised of the procedures for
  329. securing the system.  They should understand the risks,  and  know  what
  330. they  are  protecting.   The  bank officers in charge of the program had
  331. little experience with ATM systems.  They were never fully indoctrinated
  332. in  the  consequences of a PIN key or communication key compromise.  The
  333. officers showed great surprise when the developer was able  to  generate
  334. PINs  for  supplied  test cards.  Given the potential risk, nothing more
  335. was done to try to change the PIN key,  even  though,  they  were  quite
  336. aware  that  the  PIN  key was in the developer's possession.  They once
  337. even called the developer for the PIN key when they weren't able to find
  338. it.
  339.  
  340. The  developer  had a desire to maintain a smooth running system and cut
  341. down on the development time of an  already  over-budget  project.   Too
  342. much security, for example modifying I/O logs, could delay the isolation
  343. or repair of a problem.
  344.  
  345. The regional network was actually a marketing company who  subcontracted
  346. out  the  data processing tasks.  They failed to recognized the security
  347. problem of sending key information with extremely weak encryption.   The
  348. keys  were  all but sent in the clear.  There seemed to be a belief that
  349. the use of encryption in and of itself caused a network to  be  secured.
  350. The  use  of DES with an unsecured communication key gave the appearance
  351. of a secured link.
  352.  
  353. The lack of audits of the system, both in design and implementation  was
  354. the  final security defect which allowed the system to be compromised in
  355. so many ways.  An example of the Savings and Loan's  internal  auditors
  356. failure  to  understand  the problems or technology is when the auditors
  357. insisted that no contract developers would be  allowed  physically  into
  358. the  computer room.  The fact was, access to the computer room was never
  359. required to perform any of the described violations.
  360.  
  361.  
  362. 5.  Security Corrections
  363. As in any system where security was required, the time to  implement  it
  364. is  at  the  beginning.  This requires the review of both implementation
  365. ormed  to
  366. verify  that  the  procedures  are  followed  as  described in the plan.
  367. Financing, scheduling and man power for such audits must be allocated so
  368. security issues can be addressed.
  369.  
  370. For this institution, the first step would have been to indoctrinate the
  371.  
  372.  
  373.                                  - 5 -
  374.  
  375. Security Corrections
  376.  
  377. banking  officers  of  the risks in the ATM network, the vulnerabilites,
  378. and the security measures required.
  379.  
  380.  
  381. Custodians  of  all  keys should be well aware of their responsibilities
  382. for those keys.  A fall back system of key recovery must be in place  in
  383. case an officer is not available for key entry.
  384.  
  385. The  cost  of installing hardware encryption units at the host should be
  386. included in the cost of putting in the  system.   The  host  unit  could
  387. generate  down-line  keys for both the PIN key and the communication key
  388. thus making it more difficult to derive  these  keys  without  collusion
  389. from at least three people.
  390.  
  391. A  secured  communications key should be established between the Network
  392. and the institution.  This would  allow  for  the  exchange  of  working
  393. communication  keys.   This  key  should  be  changed  with a reasonable
  394. frequency.
  395.  
  396. All these areas should be audited in both the system  specification  and
  397. implementation  to  make sure they are not being abridged in the name of
  398. expediency.
  399.  
  400.  
  401. 6.  Summary
  402. In this view of a single  institution,  a  number  of  failures  in  the
  403. security  system  were  shown.   There  was  shown a definite failure to
  404. appreciate what was required in the way of security for  PINs  and  keys
  405. used  to  derive  PIN  information.   An avoidance of up front costs for
  406. security lead to potentially higher cost in the future.   The  key  area
  407. was the lack of audits of the EFT system by both the institution and the
  408. network, causing potential loss to all institutions on the network.
  409.  
  410.  
  411.                                  - 6 -
  412.  
  413. For those of you who would like a deeper view of thes of ATM
  414. PIN stuff, I'm merging some previous postings along with a paper.
  415.